<template>
    <el-row>
      <el-col>
        <el-menu router="true"
        active-text-color="#ffd04b" 
        text-color="#fff"
        background-color="#545c64" 
        :default-active="activeName" >
          <h3 class="logo">就业职通车管理系统</h3>
          <el-menu-item index="jobs" route="/home/jobs">
            <el-icon><i-ep-Document /></el-icon>
            <span>招聘岗位管理</span>
          </el-menu-item>
          <el-menu-item index="notice" route="/home/notice">
            <el-icon><i-ep-ChatDotSquare /></el-icon>
            <span>通知公告管理</span>
          </el-menu-item>
          <el-menu-item index="users" route="/home/users">
            <el-icon><i-ep-User /></el-icon>
            <span>注册用户管理</span>
          </el-menu-item>
          <el-menu-item index="databoard" route="/home/databoard">
            <el-icon><i-ep-PieChart /></el-icon>
            <span>数据分析看板</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
</template>

<script  setup>
    import { useRouter } from 'vue-router'
    const router = useRouter()
    const activeName = router.currentRoute.value.name
</script>
  
  <style scoped>
  .logo {
    text-align: center;
    color: white;
    padding: 20px 0;
  }
  
  .el-row,
  .el-col,
  .el-menu {
    height: 100%;
  }
  </style>
  